package com.fromfuture.xuhuidoc.android.db;

import com.fromfuture.xuhuidoc.android.bean.MyYuYueTab;
import com.fromfuture.xuhuidoc.android.commonresouce.MyHtml;

import java.util.ArrayList;
import java.util.List;

/**
 * Author：何送军
 * creation time：2017/8/26
 **/
public class MyYuYueDb  {
    private static MyYuYueDb myYuYueDb=new MyYuYueDb();

    public MyYuYueDb() {
    }

    public static MyYuYueDb getMyYuYueDb(){
        return myYuYueDb;
    }

    private   List<MyYuYueTab> selectedChannel=new ArrayList<MyYuYueTab>();

    public    List<MyYuYueTab> getSelectedChannel(){
        return selectedChannel;
    }

    public   MyYuYueDb  setSelectedChannel(String type){
        selectedChannel.clear();
        if (type.equals("我的预约")){
            selectedChannel.add(new MyYuYueTab("","线上预约",0,MyHtml.ONLINE_YUYUE,""));
            selectedChannel.add(new MyYuYueTab("","线下预约",0, MyHtml.OFFLINE_YUYUE,""));
        }else if (type.equals("模板管理")){
            selectedChannel.add(new MyYuYueTab("","健康方案",0,MyHtml.HEALTG_PROGRAM,""));
            selectedChannel.add(new MyYuYueTab("","注意事项",0, MyHtml.ATTENTION_CASE,""));
        }
        return this;
    }

}
